<?php

namespace app\common\model;
// use think\Model;

class WalletModel extends BaseModel {

	protected $table = 'tp_coin_wallet';

	//获取钱包列表
	public function getWalletList(){
		$data = $this->where('status',1)->order('sort asc')->select();
		return $data;
	}

	//获取单个钱包
	public function getSingleWallet($id){
		$data = $this->where('id',$id)->find();
		return $data;
	}

	/*
	更新币种信息
	 */
	public function updateWallet($id,$data){
		$res = $this->where('id',$id)->update($data);
		return $res;
	}
}
